package com.zzyl.mapper;

import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.nursingProjectPlan;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectPlanMapper {
    //新增计划项目表
    void insertBatch(List<nursingProjectPlan> projectPlans);

    //删除之前护理计划关联的护理项目
    void deleteBuId(NursingPlan nursingPlan);

    //删除护理计划项目相关表
    void deleteById(Long id);

    //查询护理计划项目相关表中是否有和项目表ID匹配的数据
    List<nursingProjectPlan> selectById(Long id);
}
